﻿using MongoDB;
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson;

namespace ToyChat.BuiltinModules
{
    /// <summary>
    /// This class is used to store default permissions for channels
    /// </summary>
    public class DefaultChannelPermissions
    {
        /// <summary>
        /// Gets or Sets the database ID of this object
        /// </summary>
        [BsonId]
        public ObjectId ID { get; set; }
        
        /// <summary>
        /// Gets or Sets the ID of the channel these permissions apply to
        /// </summary>
        public int ChannelID { get; set; }
        
        /// <summary>
        /// Gets or Sets the actual permissions
        /// </summary>
        public ChannelPermissionFlags Permissions { get; set; }
    }
}